$(function(){
	$("#head #head_nr #head_nr_wzdh").hover(function(){
        a=1;			
        $("#head #head_nr #head_nr_wzdh #tk").delay(250).stop(a==1).slideDown(100);
            $("#head #head_nr #head_nr_wzdh").css({
                "border":"1px solid #DDDDDD",
                "border-top": "none",
               	"border-bottom": "none",
               	"background": "#fff url() 0 0 no-repeat"
            });
            $("#head #head_nr #head_nr_wzdh #ead_nr_wzdh_a").css({
                "height": "35px",
                "background": "#fff url() 0 0 no-repeat",
                "border-bottom": "1px solid #FFFFFF"
            });
		},function(){
            a=0;
        	$("#head #head_nr #head_nr_wzdh #tk").delay(250).stop(a==0).slideUp(100,function () {
                $("#head #head_nr #head_nr_wzdh").css({
                "border":"1px solid #F5F5F5",
                "border-top": "none",
                "border-bottom": "none",
                "background": "#F5F5F5 url() 0 0 no-repeat"
                });
                $("#head #head_nr #head_nr_wzdh #ead_nr_wzdh_a").css({
                "height": "34px",
                "background": "#F5F5F5 url() 0 0 no-repeat",
                "border-bottom": "1px solid #EEEEEE"
                });
            });
            for (var i = 0; i <1000; i++) {
                
            }
            
    	});
    $("#head #head_nr #xiaoxi").hover(function() {
        b=1;
        $("#head #head_nr #xiaoxi #xiaoxi_div").delay(250).stop(b==0).slideDown(50);
        $("#head #head_nr #xiaoxi").css({
            "border": "1px solid #DDDDDD",
        })
        $("#head #head_nr #xiaoxi .xiaoxi_a").css({
            "background": "#FFFFFF url() 0 0 no-repeat",
            "height": "35px"
        })
        $("#head #head_nr #xiaoxi .xiaoxi_a").css({
            "text-decoration":"underline",
            "color":"#FF6600"
        });}, function() {
        b=0;
        $("#head #head_nr #xiaoxi #xiaoxi_div").delay(250).stop(b==1).slideUp(50);
        $("#head #head_nr #xiaoxi").css({
            "border": "1px solid #F5F5F5",
        })
        $("#head #head_nr #xiaoxi .xiaoxi_a").css({
            "background": "#F5F5F5 url() 0 0 no-repeat",
            "height": "33px"
        })
        $("#head #head_nr #xiaoxi .xiaoxi_a").css({
            "text-decoration":"none",
            "color":"#000000"
        });
    });
    $(".ts_1").hover(function() {
        b_a = 0;
        $(".ts_1").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        });

        $("#tb_qb").css({
            "background": "url(./img/sidebaricon.png) 5px -85px no-repeat"
        });

        $("#ts_1_div").stop(b_a==0).animate({
            left : "-50px"
        },250);

        $("#ts_1_div").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        })
        $(".ty_1").css({
            "color": '#000000'
        });


    }, function() {
        b_a = 1;
        $(".ts_1").css({
            "background": "#383838 url() 0 0 no-repeat"
        });
        $("#tb_qb").css({
            "background": "url(./img/sidebaricon.png) -30px -85px no-repeat"
        });
        $("#ts_1_div").stop(b_a==1).animate({
            left : "0px"
        },250);
        $("#ts_1_div").css({
            "background": "#383838 url() 0 0 no-repeat"
        })
        $(".ty_1").css({
            "color": '#FFAA01'
        });
    });

    $(".ts_2").hover(function() {
        b_b=0;
        $(".ts_2").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        });
        $("#tb_jyz").css({
            "background": "url(./img/sidebaricon.png) 5px -115px no-repeat"
        })
        $("#ts_2_div").stop(b_b==0).animate({
            left : "-50px"
        },250);

        $("#ts_2_div").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        })
        $(".ty_2").css({
            "color": '#000000'
        });
    }, function() {
        b_b=1;
        $(".ts_2").css({
            "background": "#383838 url() 0 0 no-repeat"
        });
        $("#tb_jyz").css({
            "background": "url(./img/sidebaricon.png) -28px -115px no-repeat"
        });
        $("#ts_2_div").stop(b_b==1).animate({
            left : "0px"
        },250);
        $("#ts_2_div").css({
            "background": "#383838 url() 0 0 no-repeat"
        })
        $(".ty_2").css({
            "color": '#FFAA01'
        });
    });

    $(".ts_3").hover(function() {
        b_c=0;
        $(".ts_3").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        });
        $("#tb_qq").css({
            "background": "url(./img/sidebaricon.png) 5px -285px no-repeat"
        })
        $("#ts_3_div").stop(b_c==0).animate({
            left : "-50px"
        },250);

        $("#ts_3_div").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        })
        $(".ty_3").css({
            "color": '#000000'
        });
    }, function() {
        b_c=1;
        $(".ts_3").css({
            "background": "#383838 url() 0 0 no-repeat"
        });
        $("#tb_qq").css({
            "background": "url(./img/sidebaricon.png) -31px -285px no-repeat"
        });
        $("#ts_3_div").stop(b_c==1).animate({
            left : "0px"
        },250);
        $("#ts_3_div").css({
            "background": "#383838 url() 0 0 no-repeat"
        })
        $(".ty_3").css({
            "color": '#FFAA01'
        });
    });

    $(".bt_div_1").hover(function() {
        t_a=0;
        $(".bt_div_1").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        });
        $("#bt_p_1").css({
            "background": "url(./img/sidebaricon.png) 6px -176px no-repeat"
        })
        $("#sz").stop(t_a==0).animate({
            left : "-75px"
        },250);

        $("#sz").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        })
        $("#sz_i").css({
            "color": '#000000'
        });
    }, function() {
        t_a=1;
        $(".bt_div_1").css({
            "background": "#383838 url() 0 0 no-repeat"
        });
        $("#bt_p_1").css({
            "background": "url(./img/sidebaricon.png) -30px -176px no-repeat"
        });
        $("#sz").stop(t_a==1).animate({
            left : "0px"
        },250);
        $("#sz").css({
            "background": "#383838 url() 0 0 no-repeat"
        })
        $("#sz_i").css({
            "color": '#FFAA01'
        });
    });

    $(".bt_div_2").hover(function() {
        t_b=0;
        $(".bt_div_2").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        });
        $("#bt_p_2").css({
            "background": "url(./img/sidebaricon.png) 5px -205px no-repeat"
        })
        $("#rw").stop(t_b==0).animate({
            left : "-75px"
        },250);

        $("#rw").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        })
        $("#rw_i").css({
            "color": '#000000'
        });
    }, function() {
        t_b=1;
        $(".bt_div_2").css({
            "background": "#383838 url() 0 0 no-repeat"
        });
        $("#bt_p_2").css({
            "background": "url(./img/sidebaricon.png) -30px -205px no-repeat"
        });
        $("#rw").stop(t_b==1).animate({
            left : "0px"
        },250);
        $("#rw").css({
            "background": "#383838 url() 0 0 no-repeat"
        })
        $("#rw_i").css({
            "color": '#FFAA01'
        });
    });

    $(".bt_div_3").hover(function() {
        t_c=0;
        $(".bt_div_3").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        });
        $("#bt_p_3").css({
            "background": "url(./img/sidebaricon.png) 6px -145px no-repeat"
        })
        $("#yhk").stop(t_c==0).animate({
            left : "-130px"
        },250);
    }, function() {
        t_a=1;
        $(".bt_div_3").css({
            "background": "#383838 url() 0 0 no-repeat"
        });
        $("#bt_p_3").css({
            "background": "url(./img/sidebaricon.png) -29px -145px no-repeat"
        });
        $("#yhk").stop(t_a==1).animate({
            left : "0px"
        },250);
    });

    $(".bt_div_4").hover(function() {
        t_d=0;
        $(".bt_div_4").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        });
        $("#bt_p_4").css({
            "background": "url(./img/sidebaricon.png) 6px -235px no-repeat"
        })
        $("#sl").stop(t_d==0).animate({
            left : "-75px"
        },250);

        $("#sl").css({
            "background": "#FFAA01 url() 0 0 no-repeat"
        })
        $("#sl_i").css({
            "color": '#000000'
        });
    }, function() {
        t_d=1;
        $(".bt_div_4").css({
            "background": "#383838 url() 0 0 no-repeat"
        });
        $("#bt_p_4").css({
            "background": "url(./img/sidebaricon.png) -30px -235px no-repeat"
        });
        $("#sl").stop(t_d==1).animate({
            left : "0px"
        },250);
        $("#sl").css({
            "background": "#383838 url() 0 0 no-repeat"
        })
        $("#sl_i").css({
            "color": '#FFAA01'
        });
    });



    var n1 = 0;
    var n2 = 0;
    var n3 = 999;
    var n4 = 999;
    function dom(n1,n2){
        $(".lz_ul").eq(n1).children('.lz_li').fadeOut(100);
        $(".lz_ul").eq(n1).children('.lz_li').eq(n2).fadeIn(1000);
        
        };
    function run () {
        if (n2==($(".lz_ul").eq(n1).children('.lz_li').size()-1)) {
            $(".lz_ul").eq(n1).children('.lz_li').fadeOut(250);
            n1++;
            // alert(n1);
            n2=0;
            if (n1==11) {
                n1=0;
            };
        }
        else
        {
            n2++;
        }
        
        dom(n1,n2);
        if (n3!=n1) {
            $(".kuaizi").css({
                "opacity": '0.3'
            });

            $(".kuaizi").eq(n1).css({
                "opacity": '0.5'
            });



            $(".kuaizi").children('.kuaiUP').animate({
            top:"0px",
            display:"none"
        },200,function () {
            $(".up_ul").css({
                "display": 'none'
            });
        });
            $(".kuaizi").eq(n1).children('.kuaiUP').animate({
            top:"-10px",
            display:"block"
        },200,function(){
            $(".up_ul").eq(n1).css({
                "display": 'block'
            });
        });

            
            
        };


            $(".up_ul").children('.up_li').css({
                "background": "#FFFFFF url() 0 0 no-repeat"
            });
            $(".up_ul").eq(n1).children('.up_li').eq(n2).css({
                "background": "#FFAA00 url() 0 0 no-repeat"
            });
        n3 = n1;
        n4 = n2;

    }
    var tm =  window.setInterval(run,1000);
    $("#lz").hover(function() {
        clearInterval(tm);
    }, function() {
        tm =  window.setInterval(run,1000);
    });


    $(".kuaikuai_li").hover(function() {
        $(".up_ul").css({
             "display": 'none'
            });
        $(".kuaizi").children('.kuaiUP').animate({
            top:"0px",
            display:"none"
        },200);

        $(".kuaizi").css({
                "opacity": '0.3'
        });
        $(this).children(".kuaizi").css({
                "opacity": '0.5'
        });

        n1 = $(this).index();
        n2 = 0;
        n3 = n1;
        
        $(".lz_li").css({
            "display": 'none'
        });

        gao = $(this).children(".tk_ul").children(".tk_li").size();
        $(this).children('.kuaizi').children(".tk").css({
            "height": (gao*25)+10+"px",
            "display":"block"
        })
        $(this).children(".tk_ul").css({
            "display":"block"
        })
        dom(n1,n2);
    },function(){
        $(".up_ul").eq(n1).css({
             "display": 'block'
        });
        $(".up_ul").children('.up_li').css({
            "background": "#FFFFFF url() 0 0 no-repeat"
        });
        $(".up_ul").eq(n1).children('.up_li').eq(n2).css({
            "background": "#FFAA00 url() 0 0 no-repeat"
        });
        $(this).children(".tk_ul").css({
            "display":"none"
        })
        $(this).children(".kuaizi").children(".tk").css({
            "display":"none"
        })
        $(this).children(".kuaizi").children('.kuaiUP').animate({
            top:"-10px",
            display:"display"
        },200,function(){

        });
    });

    
    $(".tk_li").hover(function() {
        $(this).children('.tk_a').css({
            "color": "#FF6600",
            "text-decoration":"underline"
        });
        $(this).children('.tk_div').css({
            "background": "#FFAA00 url() 0 0 no-repeat"
        });
        n2 = $(this).index();
        dom(n1,n2);
    }, function() {
        $(this).children('.tk_a').css({
            "color": "#FFFFFF",
            "text-decoration":"none"
        });
        $(this).children('.tk_div').css({
            "background": "#FFFFFF url() 0 0 no-repeat"
        });
    });









    $("xxxx").hover(function(){

    },function(){

    })







});















